<div class="ui-g-12 ui-g-nopad m-t-20">
  <p-tabView (onChange)="onTabChange($event)" [activeIndex]="tabViewIndex" [type]="1" [controlToggle]='true'>
    <p-tabPanel header="项目工队" [type]="1">
      <form #form="ngForm" (ngSubmit)="form.form.valid" novalidate class="form-horizontal" role="form">
        <p-panel headerClass="bg-none">
          <p-header>
            <div class="text-right p-6-0">
              <strong class="border-l-1a8fe8 p-l-8 pull-left m-t-8">推荐规则</strong>
              <button pButton type="button" (click)="save()" class="btn btn-success" label="保存"></button>
              <button pButton type="button" (click)="returnBtn()" label="返回" class="btn btn-secondary"></button>
            </div>
          </p-header>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 p-required color-b1b1b1">推荐数量：</div>
            <div class="table-cell icon-text" data-text="个">
              <p-spinner name="suggestNum" size="30" required (onBlur)="validSuggestNum()" (onFocus)="suggestNumError=''" placeholder="请输入推荐数量"
                styleClass="p-spinner" [(ngModel)]="sendOrderRule.suggestNum" [step]="1" [min]="1" [max]="99999"></p-spinner>
            </div>
            <div class="table-cell">
              <p-message severity="error" *ngIf="suggestNumError" [text]="suggestNumError"></p-message>
            </div>
          </div>
          <div class="p-10 border-b-d9d9d9"></div>
          <div class="p-t-20">
            <strong>一级指标</strong>
          </div>
          <div class="p-t-12 p-b-10">
            <span class="color-b1b1b1">注：一级指标选择后为必要条件，推荐的项目工队必须满足此条件</span>
          </div>
          <div class="table-row">
            <div class="table-cell text-left p-l-25">
              <p-checkbox name="firstLevelServiceArea" label="服务区域" [(ngModel)]="sendOrderRule.firstLevelServiceArea" binary="true"></p-checkbox>
            </div>
            <div class="table-cell p-l-10">
              <span class="color-b1b1b1">注：工程所在区域属于项目工队的服务区域</span>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-left p-l-25">
              <p-checkbox name="firstLevelNormalRun" label="正常运营" [(ngModel)]="sendOrderRule.firstLevelNormalRun" binary="true"></p-checkbox>
            </div>
            <div class="table-cell p-l-10">
              <span class="color-b1b1b1">注：该项目工队状态是正常运营</span>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-left p-l-25">
              <p-checkbox name="firstLevelConstructionAbility" label="施工能力" [(ngModel)]="sendOrderRule.firstLevelConstructionAbility" binary="true"></p-checkbox>
            </div>
            <div class="table-cell p-l-10">
              <span class="color-b1b1b1">注：该项目工队的在施工地&lt;施工能力时满足条件</span>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-left p-l-25">
              <p-checkbox name="firstLevelHasPay" label="已缴保证金" [(ngModel)]="sendOrderRule.firstLevelHasPay" binary="true"></p-checkbox>
            </div>
            <div class="table-cell p-l-10">
              <span class="color-b1b1b1">注：该项目工队的保证金已缴纳</span>
            </div>
          </div>
          <div class="p-5  border-b-d9d9d9"></div>
          <div class="p-t-20">
            <strong>二级指标</strong>
          </div>
          <div class="p-t-12 p-b-10">
            <span class="color-b1b1b1">注：二级指标为择优指标，根据权重占比公式获取优质项目工队</span>
          </div>
          <div class="p-b-20 p-t-10">
            <strong>加分占比</strong>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">未接单优先：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRateUnPayTeam" required (onBlur)="validSecondLevelPlusRateUnPayTeam()" (onFocus)="secondLevelPlusRateUnPayTeamError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateUnPayTeam" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateUnPayTeamError" class="color-b1b1b1">注：100*占比百分比*系数，接单数量小于X时系数值为1，大于等于X时为0</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateUnPayTeamError" [text]="secondLevelPlusRateUnPayTeamError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">接单最大量：</div>
            <div class="table-cell icon-text" data-text="个">
              <p-spinner name="secondLevelPlusRateHowMuchReceive" required (onBlur)="validSecondLevelPlusRateHowMuchReceive()" (onFocus)="secondLevelPlusRateHowMuchReceiveError=''"
                size="30" placeholder="2" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateHowMuchReceive"
                [step]="1" [min]="0" [max]="99999"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateHowMuchReceiveError" class="color-b1b1b1">注：接单量达到最大值X时，不再享受优先权</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateHowMuchReceiveError" [text]="secondLevelPlusRateHowMuchReceiveError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">所属门店：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRateBelongTo" required (onBlur)="validSecondLevelPlusRateBelongTo()" (onFocus)="secondLevelPlusRateBelongToError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateBelongTo" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateBelongToError" class="color-b1b1b1">注：100*占比百分比*系数，工程属于该店面时系数值为1，不属于时为0</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateBelongToError" [text]="secondLevelPlusRateBelongToError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">回单率：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRateBackOrder" required (onBlur)="validSecondLevelPlusRateBackOrder()" (onFocus)="secondLevelPlusRateBackOrderError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateBackOrder" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateBackOrderError" class="color-b1b1b1">注：100*占比百分比*（回单次数/已接单工地数量）</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateBackOrderError" [text]="secondLevelPlusRateBackOrderError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">满意度：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRatePassRate" required (onBlur)="validSecondLevelPlusRatePassRate()" (onFocus)="secondLevelPlusRatePassRateError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRatePassRate" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRatePassRateError" class="color-b1b1b1">注：100*占比百分比*（满意数量/已接单工地数量），满意数量计算：所有对该工程的评价分值平均分，平均值>=4为满意</span>
              <p-message severity="error" *ngIf="secondLevelPlusRatePassRateError" [text]="secondLevelPlusRatePassRateError"></p-message>
            </div>
          </div>
          <div class="p-20-0">
            <strong>减分占比</strong>
          </div>
          <div class="table-row p-b-10">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">投诉：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelMinusRateComplain" required (onBlur)="validSecondLevelMinusRateComplain()" (onFocus)="secondLevelMinusRateComplainError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelMinusRateComplain" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelMinusRateComplainError" class="color-b1b1b1">注：100*占比百分比*（投诉次数/已接单工地数量）</span>
              <p-message severity="error" *ngIf="secondLevelMinusRateComplainError" [text]="secondLevelMinusRateComplainError"></p-message>
            </div>
          </div>
          <div class="table-row p-b-10">
            <div class="table-cell text-right p-l-25 color-b1b1b1">处罚：</div>
            <span class="color-b1b1b1">注：ny , n=一般处罚次数 / x取整</span>
          </div>
          <div> </div>
          <div class="table-row">
            <div class="table-cell" style="max-width:600px;">
              <p-dataTable [value]="punishDataList" [rows]="5" [lazy]="true" [paginator]="false" [pageLinks]="4" [emptyMessage]="'无数据'"
                [editable]="true">
                <p-column *ngFor="let col of punishCols" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [editable]="col.editable"
                  [style]="{'width':col.width}">

                  <ng-template pTemplate="header" *ngIf="col.required">
                    <div *ngIf="col.field === 'num'" class="p-required required">
                      {{col.header}}
                    </div>
                    <div *ngIf="col.field === 'score'" class="p-required required">
                      {{col.header}}
                    </div>
                  </ng-template>

                  <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.temread">
                    <div *ngIf="col.field === 'check'">
                      <p-checkbox name="check{{index}}" [(ngModel)]="data[col.field]" binary="true" appendTo="body"></p-checkbox>
                    </div>
                    <div *ngIf="col.field === 'num' || col.field === 'score'">
                      <div [class.p-input-error]="(data.check && !data[col.field]) || !isRegex(data[col.field],col.pattern)" class="flex-td" [pTooltip]="check(data.check,data[col.field],col.pattern)"
                        errorTip="true" tooltipPosition="top">
                        {{data[col.field]}}
                      </div>
                    </div>
                  </ng-template>
                  <ng-template let-index="rowIndex" let-data="rowData" pTemplate="editor" *ngIf="col.tem">
                    <div *ngIf="col.field === 'check'">
                      <p-checkbox name="check{{index}}" [(ngModel)]="data[col.field]" binary="true" required appendTo="body"></p-checkbox>
                    </div>
                    <div *ngIf="col.field === 'num'">
                      <input [name]="col.field + index" [(ngModel)]="data[col.field]" type="text" errorTip="true" [pTooltip]="check(data.check,data[col.field],col.pattern)"
                        placeholder="请输入" tooltipPosition="top" tooltipEvent="focus" pInputText maxlength="5" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
                        onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}">
                    </div>
                    <div *ngIf=" col.field === 'score'">
                      <input [name]="col.field + index" [(ngModel)]="data[col.field]" type="text" errorTip="true" [pTooltip]="check(data.check,data[col.field],col.pattern)"
                        placeholder="请输入" tooltipPosition="top" tooltipEvent="focus" maxlength="5" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d.]/g,'');}).call(this)"
                        onblur="this.v();" pInputText>
                    </div>
                  </ng-template>
                </p-column>
              </p-dataTable>
            </div>
          </div>
          <div class="p-5 border-b-d9d9d9"></div>
          <div class="p-t-20">
            <strong>三级指标</strong>
          </div>
          <div class="p-t-7 p-b-20">
            <span class="color-b1b1b1">注：三级指标为在满足一级、二级的数据中排序</span>
          </div>
          <div class="table-row">
            <div class="table-cell" style="max-width:700px;">
              <p-dataTable [value]="dataList" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'无数据'">
                <p-column *ngFor="let col of cols" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
                </p-column>
                <p-column>
                  <ng-template pTemplate="header">
                    操作
                  </ng-template>
                  <ng-template let-index="rowIndex" pTemplate="body">
                    <span (click)="checkStandardMoveUp(index)" class="move">上移</span>
                    <span (click)="checkStandardMoveDown(index)" class="move">下移</span>
                  </ng-template>
                </p-column>
              </p-dataTable>
            </div>
          </div>
        </p-panel>
      </form>
    </p-tabPanel>
    <p-tabPanel header="监理" [type]="1">
      <form #form="ngForm" (ngSubmit)="form.form.valid" novalidate class="form-horizontal" role="form">
        <p-panel headerClass="bg-none">
          <p-header>
            <div class="text-right p-6-0">
              <strong class="border-l-1a8fe8 p-l-8 pull-left m-t-8">推荐规则</strong>
              <button pButton type="button" (click)="save()" class="btn btn-success" label="保存"></button>
              <button pButton type="button" (click)="returnBtn()" label="返回" class="btn btn-secondary"></button>
            </div>
          </p-header>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 p-required color-b1b1b1">推荐数量：</div>
            <div class="table-cell icon-text" data-text="个">
              <p-spinner name="suggestNum" size="30" required (onBlur)="validSuggestNum()" (onFocus)="suggestNumError=''" placeholder="0"
                styleClass="p-spinner" [(ngModel)]="sendOrderRule.suggestNum" [step]="1" [min]="1" [max]="99999"></p-spinner>
            </div>
            <div class="table-cell">
              <p-message severity="error" *ngIf="suggestNumError" [text]="suggestNumError"></p-message>
            </div>
          </div>
          <div class="p-10 border-b-d9d9d9"></div>
          <div class="p-t-20">
            <strong>一级指标</strong>
          </div>
          <div class="p-t-12 p-b-10">
            <span class="color-b1b1b1">注：一级指标选择后为必要条件，推荐的项目工队必须满足此条件</span>
          </div>
          <div class="table-row">
            <div class="table-cell text-left p-l-25">
              <p-checkbox name="firstLevelServiceCity" label="服务城市" [(ngModel)]="sendOrderRule.firstLevelServiceCity" binary="true"></p-checkbox>
            </div>
            <div class="table-cell p-l-10">
              <span class="color-b1b1b1">注：工程所在区域属于项目工队的服务区域</span>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-left p-l-25">
              <p-checkbox name="firstLevelJobContent" label="在职状态" [(ngModel)]="sendOrderRule.firstLevelJobContent" binary="true"></p-checkbox>
            </div>
            <div class="table-cell p-l-10">
              <span class="color-b1b1b1">注：该监理状态是在职</span>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-left p-l-25">
              <p-checkbox name="firstLevelConstructionInBuidingNum" label="在施工队最多数量" [(ngModel)]="sendOrderRule.firstLevelConstructionInBuidingNum"
                binary="true"></p-checkbox>
            </div>
            <div class="table-cell icon-text" data-text="个">
              <p-spinner name="firstLevelConstructionInBuidingNumNumber" size="30" required (onBlur)="validFirstLevelConstructionInBuidingNumNumber()"
                (onFocus)="firstLevelConstructionInBuidingNumNumberError=''" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.firstLevelConstructionInBuidingNumNumber"
                [step]="1" [min]="1" [max]="99999"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <p-message severity="error" *ngIf="firstLevelConstructionInBuidingNumNumberError" [text]="firstLevelConstructionInBuidingNumNumberError"></p-message>
              <span *ngIf="!firstLevelConstructionInBuidingNumNumberError" class="color-b1b1b1">注：在施工地数量&lt;最大数量时，满足条件</span>
            </div>
          </div>
          <div class="p-5 0 border-b-d9d9d9"></div>
          <div class="p-t-20">
            <strong>二级指标</strong>
          </div>
          <div class="p-t-12 p-b-10">
            <span class="color-b1b1b1">注：二级指标为择优指标，根据权重占比公式获取优质项目工队</span>
          </div>
          <div class="p-b-20 p-t-10">
            <strong>加分占比</strong>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">未接单优先：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRateUnPayTeam" required (onBlur)="validSecondLevelPlusRateUnPayTeam()" (onFocus)="secondLevelPlusRateUnPayTeamError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateUnPayTeam" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateUnPayTeamError" class="color-b1b1b1">注：100*占比百分比*系数，接单数量小于X时系数值为1，大于等于X时为0</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateUnPayTeamError" [text]="secondLevelPlusRateUnPayTeamError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">接单最大量：</div>
            <div class="table-cell icon-text" data-text="个">
              <p-spinner name="secondLevelPlusRateHowMuchReceive" required (onBlur)="validSecondLevelPlusRateHowMuchReceive()" (onFocus)="secondLevelPlusRateHowMuchReceiveError=''"
                size="30" placeholder="2" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateHowMuchReceive"
                [step]="1" [min]="0" [max]="99999"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateHowMuchReceiveError" class="color-b1b1b1">注：接单量达到最大值X时，不再享受优先权</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateHowMuchReceiveError" [text]="secondLevelPlusRateHowMuchReceiveError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">所属门店：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRateBelongTo" required (onBlur)="validSecondLevelPlusRateBelongTo()" (onFocus)="secondLevelPlusRateBelongToError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateBelongTo" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateBelongToError" class="color-b1b1b1">注：100*占比百分比*系数，工程属于该店面时系数值为1，不属于时为0</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateBelongToError" [text]="secondLevelPlusRateBelongToError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">回单率：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRateBackOrder" required (onBlur)="validSecondLevelPlusRateBackOrder()" (onFocus)="secondLevelPlusRateBackOrderError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRateBackOrder" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRateBackOrderError" class="color-b1b1b1">注：100*占比百分比*（回单次数/已接单工地数量）</span>
              <p-message severity="error" *ngIf="secondLevelPlusRateBackOrderError" [text]="secondLevelPlusRateBackOrderError"></p-message>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">满意度：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelPlusRatePassRate" required (onBlur)="validSecondLevelPlusRatePassRate()" (onFocus)="secondLevelPlusRatePassRateError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelPlusRatePassRate" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelPlusRatePassRateError" class="color-b1b1b1">注：100*占比百分比*（满意数量/已接单工地数量），满意数量计算：所有对该工程的评价分值平均分，平均值>=4为满意</span>
              <p-message severity="error" *ngIf="secondLevelPlusRatePassRateError" [text]="secondLevelPlusRatePassRateError"></p-message>
            </div>
          </div>
          <div class="p-20-0">
            <strong>减分占比</strong>
          </div>
          <div class="table-row p-b-10">
            <div class="table-cell text-right p-l-25 color-b1b1b1 p-required">投诉：</div>
            <div class="table-cell icon-text" data-text="%">
              <p-spinner name="secondLevelMinusRateComplain" required (onBlur)="validSecondLevelMinusRateComplain()" (onFocus)="secondLevelMinusRateComplainError=''"
                size="30" placeholder="0" styleClass="p-spinner" [(ngModel)]="sendOrderRule.secondLevelMinusRateComplain" [step]="1"
                [min]="0" [max]="100"></p-spinner>
            </div>
            <div class="table-cell p-l-10">
              <span *ngIf="!secondLevelMinusRateComplainError" class="color-b1b1b1">注：100*占比百分比*（投诉次数/已接单工地数量）</span>
              <p-message severity="error" *ngIf="secondLevelMinusRateComplainError" [text]="secondLevelMinusRateComplainError"></p-message>
            </div>
          </div>
          <div class="table-row p-b-10">
            <div class="table-cell text-right p-l-25 color-b1b1b1">处罚：</div>
            <span class="color-b1b1b1">注：ny , n=一般处罚次数 / x取整</span>
          </div>
          <div> </div>
          <div class="table-row">
            <div class="table-cell" style="max-width:600px;">
              <p-dataTable [value]="punishDataList" [rows]="5" [lazy]="true" [paginator]="false" [pageLinks]="4" [emptyMessage]="'无数据'"
                [editable]="true">
                <p-column *ngFor="let col of punishCols" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [editable]="col.editable"
                  [style]="{'width':col.width}">
                  <ng-template pTemplate="header" *ngIf="col.required">
                    <div *ngIf="col.field === 'num'" class="p-required required">
                      {{col.header}}
                    </div>
                    <div *ngIf="col.field === 'score'" class="p-required required">
                      {{col.header}}
                    </div>
                  </ng-template>
                  <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.temread">
                    <div *ngIf="col.field === 'check'">
                      <p-checkbox name="check{{index}}" [(ngModel)]="data[col.field]" binary="true" appendTo="body"></p-checkbox>
                    </div>
                    <div *ngIf="col.field === 'num' || col.field === 'score'">
                      <div [class.p-input-error]="(data.check && !data[col.field]) || !isRegex(data[col.field],col.pattern)" class="flex-td" [pTooltip]="check(data.check,data[col.field],col.pattern)"
                        errorTip="true" tooltipPosition="top">
                        {{data[col.field]}}
                      </div>
                    </div>
                  </ng-template>
                  <ng-template let-index="rowIndex" let-data="rowData" pTemplate="editor" *ngIf="col.tem">
                    <div *ngIf="col.field === 'check'">
                      <p-checkbox name="check{{index}}" [(ngModel)]="data[col.field]" binary="true" required appendTo="body"></p-checkbox>
                    </div>
                    <div *ngIf="col.field === 'num'">
                      <input [name]="col.field + index" [(ngModel)]="data[col.field]" type="text" errorTip="true" [pTooltip]="check(data.check,data[col.field],col.pattern)"
                        placeholder="请输入" tooltipPosition="top" tooltipEvent="focus" pInputText maxlength="5"
                        onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"  
                        onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}">
                    </div>
                    <div *ngIf="col.field === 'score'">
                      <input [name]="col.field + index" [(ngModel)]="data[col.field]" type="text" errorTip="true" [pTooltip]="check(data.check,data[col.field],col.pattern)"
                        placeholder="请输入" tooltipPosition="top" tooltipEvent="focus" pInputText
                        maxlength="5" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d.]/g,'');}).call(this)" onblur="this.v();">
                    </div>
                  </ng-template>
                </p-column>
              </p-dataTable>
            </div>
          </div>
          <div class="p-5 border-b-d9d9d9"></div>
          <div class="p-t-20">
            <strong>三级指标</strong>
          </div>
          <div class="p-t-7 p-b-20">
            <span class="color-b1b1b1">注：三级指标为在满足一级、二级的数据中排序</span>
          </div>
          <div class="table-row">
            <div class="table-cell" style="max-width:700px;">
              <p-dataTable [value]="dataList" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'无数据'">
                <p-column *ngFor="let col of cols" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
                </p-column>
                <p-column>
                  <ng-template pTemplate="header">
                    操作
                  </ng-template>
                  <ng-template let-index="rowIndex" pTemplate="body">
                    <span (click)="checkStandardMoveUp(index)" class="move">上移</span>
                    <span (click)="checkStandardMoveDown(index)" class="move">下移</span>
                  </ng-template>
                </p-column>
              </p-dataTable>
            </div>
          </div>
        </p-panel>
      </form>
    </p-tabPanel>
  </p-tabView>
</div>